package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.CrmFlowTableRelationship;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * crm流程相关表关系Mapper
 *
 * @Author: ShenWei
 * @Date: 2024/08/23/15:02
 */
public interface CrmFlowTableRelationshipMapper extends BaseMapper<CrmFlowTableRelationship> {

    List<Map<String, Long>> getWorkOrderProjectIdMap(@Param("workOrderIdSet") Set<Long> workOrderIdSet);

    Set<Long> getWorkOrderIdSetByProjectId(@Param("projectId") Long projectId);

    Set<Long> getWorkOrderIdSet(@Param("projectId") Long projectId,
                                @Param("projectName") String projectName,
                                @Param("projectType") String projectType,
                                @Param("projectStatus") String projectStatus,
                                @Param("companyId") String companyId);
}
